<html>
<head>
<title>
Rss20Writer - Helma Javascript Reference
</title>

<meta http-equiv="Content-Script-Type" content="text/javascript">
<script src="scripts.js"></script>
<link rel="stylesheet" href="styles.css" media="screen" />
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">_uacct = "UA-737027-2";urchinTracker();</script>
<style>
td {
    font-family: "Trebuchet MS", sans-serif; 
    font-size: 13px; 
    line-height:135%;
}
.columnheight {
    height: 1350px;
}
</style>
</head>
<body bgcolor="white">

<div class="frame">

<img class="home" onclick="location='http://dev.helma.org/'" src="helmaheader.gif" /><br />
<div class="lead">
    <p>Detailed reference of prototypes, properties and methods available in the <br />
    Javascript environment of your Helma web applications.</p>
</div>

<script> openbox('content') </script>


    <div class="content">
        <div class="docs">
        
            <!--
            <div class="sectionHead">Library: Rss20Writer.js</div>
            -->
            <div class="section overview">
            <!--
                <div class="itemTitle">
                    Overview
                </div>
            -->
                <div>   
                    <div class="desc">Fields and methods of the jala.Rss20Writer class.</div>
                    <div class="itemTags">
            <!--
                    <ul>
                        
                    
                    </ul>
            -->
                    </div>
                </div>
            </div>
            
            <!--
            <div class="sectionHead">Constructors</div>
            -->
            
            
            <div class="section constructor">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer"></a>
                    
                    
                        <i><a href="#jala" class="type">jala</a>
                        <span class="symbolname">Rss20Writer</span>(<span class="signature">header</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc"></div>
                
                
                    <div class="desc">Class to create, modify and render standard-compliant
RSS 2.0 feeds.</div>
                
                
                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            String
                        </td>
                        <td>
                            header
                        </td>
                        <td>
                            Optional XML header.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                <div class="detailHead">methods</div>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.getRoot">getRoot</a>()</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.extendChannel">extendChannel</a>(ext)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.getChannel">getChannel</a>()</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.setChannel">setChannel</a>(data)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.extendItem">extendItem</a>(ext)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.createItem">createItem</a>(data)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.addItem">addItem</a>(item)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.addCategory">addCategory</a>(name, domain, parent)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.setImage">setImage</a>(data)</li>
                    </ul>
                
                    <ul class="details">
                        <li><a href="#jala.Rss20Writer.setTextInput">setTextInput</a>(data)</li>
                    </ul>
                
                
                
                
                
                
                    <div class="detailHead">inherits</div>
                    
                        <div>createElement(<span class="signature">data</span>) from jala.XmlWriter</div>
                    
                        <div>extend(<span class="signature">template, ext</span>) from jala.XmlWriter</div>
                    
                        <div>addNamespace(<span class="signature">name, url</span>) from jala.XmlWriter</div>
                    
                        <div>write(<span class="signature"></span>) from jala.XmlWriter</div>
                    
                        <div>toString(<span class="signature"></span>) from jala.XmlWriter</div>
                    
                        <div>clone(<span class="signature">The</span>) from jala.XmlWriter</div>
                    
                
                
                

                

            </div>
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            <!--
            <div class="sectionHead">Namespaces</div>
            -->
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            <!--
            <div class="sectionHead">Properties</div>
            -->
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            

            <!--
            <div class="sectionHead">Constructors</div>
            -->
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            <div class="sectionHead">Methods</div>
            
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.getRoot"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">getRoot</span>(<span class="signature"></span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Get the writer's root element.</div>
                

                
                
                
                
                
                
                
                <div class="detailHead">returns</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            
                        </td>
                        <td>
                            The writer's root element.
                        </td> 
                    </tr>
                
                </table>
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.extendChannel"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">extendChannel</span>(<span class="signature">ext</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Add child elements to the channel template.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Array
                        </td>
                        <td>
                            ext
                        </td>
                        <td>
                            List of additional child elements.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.getChannel"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">getChannel</span>(<span class="signature"></span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Get the writer's channel element.</div>
                

                
                
                
                
                
                
                
                <div class="detailHead">returns</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            
                        </td>
                        <td>
                            The writer's channel element.
                        </td> 
                    </tr>
                
                </table>
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.setChannel"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">setChannel</span>(<span class="signature">data</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Populate the channel element with data.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Object
                        </td>
                        <td>
                            data
                        </td>
                        <td>
                            An XmlWriter-compliant object structure.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                <div class="detailHead">returns</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            
                        </td>
                        <td>
                            The populated channel element.
                        </td> 
                    </tr>
                
                </table>
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.extendItem"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">extendItem</span>(<span class="signature">ext</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Add child elements to the item template.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Array
                        </td>
                        <td>
                            ext
                        </td>
                        <td>
                            List of additional child elements.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.createItem"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">createItem</span>(<span class="signature">data</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Get a new and innocent item element.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Object
                        </td>
                        <td>
                            data
                        </td>
                        <td>
                            An XmlWriter-compliant object structure.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                <div class="detailHead">returns</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            
                        </td>
                        <td>
                            A new and innocent item element.
                        </td> 
                    </tr>
                
                </table>
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.addItem"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">addItem</span>(<span class="signature">item</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Add an item element to the channel element.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            jala.XmlWriter.XmlElement
                        </td>
                        <td>
                            item
                        </td>
                        <td>
                            The item element to add.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.addCategory"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">addCategory</span>(<span class="signature">name, domain, parent</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Add a category element to an arbitrary element.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            String
                        </td>
                        <td>
                            name
                        </td>
                        <td>
                            The name of the category.
                        </td> 
                    </tr>
                
                    <tr>
                        <td class="type">
                            String
                        </td>
                        <td>
                            domain
                        </td>
                        <td>
                            The domain of the category.
                        </td> 
                    </tr>
                
                    <tr>
                        <td class="type">
                            jala.XmlWriter.XmlElement
                        </td>
                        <td>
                            parent
                        </td>
                        <td>
                            The optional parent element.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.setImage"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">setImage</span>(<span class="signature">data</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Populate the image element with data.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Object
                        </td>
                        <td>
                            data
                        </td>
                        <td>
                            An XmlWriter-compliant object structure.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
            <div class="section function">
                <div class="itemTitle">
                    <a name="jala.Rss20Writer.setTextInput"></a>
                    
                    
                        <i><a href="#jala.Rss20Writer" class="type">jala.Rss20Writer</a>.
                        <span class="symbolname">setTextInput</span>(<span class="signature">data</span>)</i>
                    
                    
                    
                </div>
                
                
                    <div class="desc">Populate the textInput element with data.</div>
                

                
                
                
                
                
                <div class="detailHead">parameters</div>
                <table class="params">
                
                    <tr>
                        <td class="type">
                            Object
                        </td>
                        <td>
                            data
                        </td>
                        <td>
                            An XmlWriter-compliant object structure.
                        </td> 
                    </tr>
                
                </table>
                
                
                
                
                

                

            </div>
            
            
            
        </div>
    </div>
    <div class="finePrint">
    Fri, 05 Feb 2010 17:40:07 GMT.
    </div>

<script> closebox() </script>

<script> openbox('pageintro') </script>

    <h3>core framework</h3>
        <ul>            
            <li><a href="global.html">global</a></li>
            <li><a href="app.html">app (application)</a></li>
            <li><a href="req.html">req (request)</a></li>
            <li><a href="res.html">res (response)</a></li>
            <li><a href="session.html">session</a></li>
            <li><a href="global.html#path">path</a></li>
            <li><a href="global.html#root">root</a></li>
            <li><a href="HopObject.html">HopObject</a></li>
            <li><a href="User.html">User</a></li>
            <li><a href="File.html">File</a></li>
            <li><a href="FtpClient.html">FtpClient</a></li>
            <li><a href="Image.html">Image</a></li>
            <li><a href="Mail.html">Mail</a></li>
            <li><a href="global.html#Remote">Remote</a></li>
            <li><a href="Xml.html">Xml</a></li>
            <li><a href="DatabaseObject.html">DatabaseObject</a></li>
            <li><a href="MimePart.html">MimePart</a></li>
            <li><a href="Skin.html">Skin</a></li>
            <li><a href="global.html#Object.dontEnum">Object</a></li>
        </ul>
        
    <h3>optional modules</h3>
        <ul>            
            <li><a href="ArrayExtensions.html">Array extensions</a></li>
            <li><a href="DateExtensions.html">Date extensions</a></li>
            <li><a href="NumberExtensions.html">Number extensions</a></li>
            <li><a href="ObjectExtensions.html">Object extensions</a></li>
            <li><a href="StringExtensions.html">String extensions</a></li>
            <li><a href="HopObjectExtensions.html">HopObject extensions</a></li>
            <li><a href="GlobalMacros.html">global macros</a></li>
            <li><a href="MacroFilters.html">macro filters</a></li>
            <li><a href="JSON.html">JSON methods</a></li>
            <br />
            <li><a href="helma.Aspects.html">helma.Aspects</a></li>
            <li><a href="helma.Chart.html">helma.Chart</a></li>
            <li><a href="helma.Color.html">helma.Color</a></li>
            <li><a href="helma.Database.html">helma.Database</a></li>
            <li><a href="helma.File.html">helma.File</a></li>
            <li><a href="helma.Ftp.html">helma.Ftp</a></li>
            <li><a href="helma.Group.html">helma.Group</a></li>
            <li><a href="helma.Html.html">helma.Html</a></li>
            <li><a href="helma.Http.html">helma.Http</a></li>
            <li><a href="helma.Image.html">helma.Image</a></li>
            <li><a href="helma.Mail.html">helma.Mail</a></li>
            <li><a href="helma.Search.html">helma.Search</a></li>
            <li><a href="helma.Skin.html">helma.Skin</a></li>
            <li><a href="helma.Ssh.html">helma.Ssh</a></li>
            <li><a href="helma.Url.html">helma.Url</a></li>
            <li><a href="helma.Zip.html">helma.Zip</a></li>
            <br />
            <li><a href="jala.BitTorrent.html">jala.BitTorrent</a></li>
            <li><a href="jala.Captcha.html">jala.Captcha</a></li>
            <li><a href="jala.Date.html">jala.Date</a></li>
            <li><a href="jala.db.html">jala.db</a></li>
            <li><a href="jala.DnsClient.html">jala.DnsClient</a></li>
            <li><a href="jala.Form.html">jala.Form</a></li>
            <li><a href="jala.History.html">jala.History</a></li>
            <li><a href="jala.HopObjectExtensions.html">jala HopObject extensions</a></li>
            <li><a href="jala.HtmlDocument.html">jala.HtmlDocument</a></li>
            <li><a href="jala.I18n.html">jala.I18n</a></li>
            <li><a href="jala.ImageFilter.html">jala.ImageFilter</a></li>
            <li><a href="jala.IndexManager.html">jala.IndexManager</a></li>
            <li><a href="jala.ListRenderer.html">jala.ListRenderer</a></li>
            <li><a href="jala.Mp3.html">jala.Mp3</a></li>
            <li><a href="jala.PodcastWriter.html">jala.PodcastWriter</a></li>
            <li><a href="jala.RemoteContent.html">jala.RemoteContent</a></li>
            <li><a href="jala.Rss20Writer.html">jala.Rss20Writer</a></li>
            <li><a href="jala.Utilities.html">jala.Utilities</a></li>
            <li><a href="jala.XmlRpcRequest.html">jala.XmlRpcRequest</a></li>
            <li><a href="jala.XmlWriter.html">jala.XmlWriter</a></li>
        </ul>
    
    <h3>java libraries</h3>
        <ul>            
            <li><a href="http://www.docjar.org/">docjar search</a></li>
        </ul>

    <h3>properties files</h3>
        <ul>            
            <li><a href="http://dev.helma.org/docs/Properties+Files/apps.properties/">apps.properties</a></li>
            <li><a href="http://dev.helma.org/docs/Properties+Files/app.properties/">app.properties</a></li>
            <li><a href="http://dev.helma.org/docs/Properties+Files/server.properties/">server.properties</a></li>
            <li><a href="http://dev.helma.org/docs/Properties+Files/db.properties/">db.properties</a></li>
            <li><a href="http://dev.helma.org/docs/Properties+Files/class.properties/">class.properties</a></li>
            <li><a href="http://dev.helma.org/docs/Type.properties+Documentation/">type.properties</a></li>
         </ul>
    
<script> closebox() </script>

</div>
<br clear="all" /><br /><br />



</body>
</html>
